private static ObjectName createObjectName ( String type , String name , Hashtable < String , String > props ) { props . put ( KEY_TYPE , type ) ; props . put ( KEY_NAME , name ) ; try { return new ObjectName ( DOMAIN_NAME , props ) ; } catch ( MalformedObjectNameException e ) { throw new IllegalArgumentException ( e ) ; } }
Common object name factory method .