public static Object getUsageParameterSet ( ProfileObjectImpl profileObject , String name ) throws UnrecognizedUsageParameterSetNameException { if ( logger . isDebugEnabled ( ) ) { logger . info ( "[getUsageParameterSet(" + name + ")] @ " + profileObject ) ; } if ( name == null ) { throw new NullPointerException ( "UsageParameterSet name must not be null." ) ; } ProfileTableImpl profileTable = profileObject . getProfileTable ( ) ; Object result = profileTable . getProfileTableUsageMBean ( ) . getInstalledUsageParameterSet ( name ) ; if ( result == null ) { throw new UnrecognizedUsageParameterSetNameException ( ) ; } else { return result ; } }
Usage methods . Here we can be static for sure . Rest must be tested .