String paramName = operations[j] + "Credential_" + type;
if (getParameterAsString(paramName) != null) {
String roleId = getParameterAsString(ROLE);
String method = getParameterAsString(METHOD);
String id = getParameterAsString(type);
Accreditable item = getAccreditable(type, id);
Role role = getRoleManager().getRole(roleId);
manipulateCredential(item, role, operations[j], method);
setParameter(SUB_CREDENTIALS, getSubtreeCredentials());
deleteParameter(paramName);
}