Source:
<code>public Response updateUserPATCH(@PathParam(SCIMConstants.CommonSchemaConstants.ID) String id, @HeaderParam(SCIMConstants.CONTENT_TYPE_HEADER) String inputFormat, @HeaderParam(SCIMConstants.ACCEPT_HEADER) String outputFormat, @HeaderParam(SCIMConstants.AUTHORIZATION_HEADER) String authorization, String resourceString) { Encoder encoder = null; try { IdentitySCIMManager identitySCIMManager = IdentitySCIMManager.getInstance(); <START> if (inputFormat == null) { <END> String error = SCIMConstants.CONTENT_TYPE_HEADER + " not present in the request header"; throw new FormatNotSupportedException(error); } inputFormat = identifyInputFormat(inputFormat); outputFormat = identifyOutputFormat(outputFormat); encoder = identitySCIMManager.getEncoder(SCIMConstants.identifyFormat(outputFormat)); UserManager userManager = IdentitySCIMManager.getInstance().getUserManager( authorization); UserResourceEndpoint userResourceEndpoint = new UserResourceEndpoint(); SCIMResponse response = userResourceEndpoint.updateWithPATCH(id, resourceString, inputFormat, outputFormat, userManager); return new JAXRSResponseBuilder().buildResponse(response); } catch (CharonException e) { if (logger.isDebugEnabled()) { logger.debug("Charon Exception raised while executing PATCH request.", e); } if (e.getCode() == -1) { e.setCode(ResponseCodeConstants.CODE_INTERNAL_SERVER_ERROR); } return new JAXRSResponseBuilder().buildResponse(AbstractResourceEndpoint .encodeSCIMException(encoder, e)); } catch (FormatNotSupportedException e) { if (logger.isDebugEnabled()) { logger.debug("Request format is not supported.", e); } return new JAXRSResponseBuilder().buildResponse(AbstractResourceEndpoint .encodeSCIMException(encoder, e)); } }</code><technical_language>StringUtils.isEmpty(inputFormat)</technical_language>

Target:
public Response updateUserPATCH(@PathParam(SCIMConstants.CommonSchemaConstants.ID) String id, @HeaderParam(SCIMConstants.CONTENT_TYPE_HEADER) String inputFormat, @HeaderParam(SCIMConstants.ACCEPT_HEADER) String outputFormat, @HeaderParam(SCIMConstants.AUTHORIZATION_HEADER) String authorization, String resourceString) { Encoder encoder = null; try { IdentitySCIMManager identitySCIMManager = IdentitySCIMManager.getInstance(); if (StringUtils.isEmpty(inputFormat)) { String error = SCIMConstants.CONTENT_TYPE_HEADER + " not present in the request header"; throw new FormatNotSupportedException(error); } inputFormat = identifyInputFormat(inputFormat); outputFormat = identifyOutputFormat(outputFormat); encoder = identitySCIMManager.getEncoder(SCIMConstants.identifyFormat(outputFormat)); UserManager userManager = IdentitySCIMManager.getInstance().getUserManager( authorization); UserResourceEndpoint userResourceEndpoint = new UserResourceEndpoint(); SCIMResponse response = userResourceEndpoint.updateWithPATCH(id, resourceString, inputFormat, outputFormat, userManager); return new JAXRSResponseBuilder().buildResponse(response); } catch (CharonException e) { logger.error("Charon Exception raised while executing PATCH request.", e); if (e.getCode() == -1) { e.setCode(ResponseCodeConstants.CODE_INTERNAL_SERVER_ERROR); } return new JAXRSResponseBuilder().buildResponse(AbstractResourceEndpoint .encodeSCIMException(encoder, e)); } catch (FormatNotSupportedException e) { logger.debug("Request format is not supported.", e); return new JAXRSResponseBuilder().buildResponse(AbstractResourceEndpoint .encodeSCIMException(encoder, e)); } }