public ObjectName createObjectName ( ) { try { if ( StringUtils . hasText ( objectName ) ) { return new ObjectName ( objectDomain + ":" + objectName ) ; } if ( type != null ) { if ( StringUtils . hasText ( objectDomain ) ) { return new ObjectName ( objectDomain , "type" , type . getSimpleName ( ) ) ; } return new ObjectName ( type . getPackage ( ) . getName ( ) , "type" , type . getSimpleName ( ) ) ; } return new ObjectName ( objectDomain , "name" , name ) ; } catch ( NullPointerException | MalformedObjectNameException e ) { throw new CitrusRuntimeException ( "Failed to create proper object name for managed bean" , e ) ; } }
Constructs proper object name either from given domain and name property or by evaluating the mbean type class information .