The inheritance design pattern seems to be not correct: the private attribute 'type' is declared on both classes.
Moreover, if possible, the method 'getInterfacesName' should be used instead of 'getInterfaces' by client classes of JBIServiceEndpointImpl because it is faster.