public static Map < String , Object > getParameters ( final OperationContext context , final ModelNode config , final Map < String , String > mapping ) throws OperationFailedException { Map < String , String > fromModel = CommonAttributes . PARAMS . unwrap ( context , config ) ; Map < String , Object > parameters = new HashMap <> ( ) ; for ( Map . Entry < String , String > entry : fromModel . entrySet ( ) ) { parameters . put ( mapping . getOrDefault ( entry . getKey ( ) , entry . getKey ( ) ) , entry . getValue ( ) ) ; } return parameters ; }
Get the parameters .