Injection injector = new Injection();
if (attributeName.equals(JcaDistributedWorkManagerDefinition.DWmParameters.POLICY.getAttribute().getName())) {
switch (JcaDistributedWorkManagerDefinition.PolicyValue.valueOf(resolvedValue.asString())) {
case NEVER: {
namedDistributedWorkManager.setPolicy(new Never());
break;
}
case ALWAYS: {
namedDistributedWorkManager.setPolicy(new Always());
break;