Source:
<code>public MetadataField getMetadataFieldQualified(@PathParam("schema_prefix") String schemaPrefix, @PathParam("element") String element, @PathParam("qualifier") @DefaultValue("") String qualifier, @QueryParam("expand") String expand, @QueryParam("userIP") String user_ip, @QueryParam("userAgent") String user_agent, @QueryParam("xforwarderfor") String xforwarderfor, @Context HttpHeaders headers, @Context HttpServletRequest request) throws WebApplicationException { log.info("Reading metadata field."); org.dspace.core.Context context = null; MetadataField metadataField = null; try { context = createContext(getUser(headers)); org.dspace.content.MetadataSchema schema = metadataSchemaService.find(context, schemaPrefix); if (schema == null) { log.error(String.format("Schema not found for prefix %s", schemaPrefix)); throw new WebApplicationException(Response.Status.NOT_FOUND); } org.dspace.content.MetadataField field = metadataFieldService.findByElement(context, schema, element, qualifier); if (field == null) { log.error(String.format("Field %s.%s.%s not found", schemaPrefix, element, qualifier)); throw new WebApplicationException(Response.Status.NOT_FOUND); } metadataField = new MetadataField(schema, field, expand, context); context.complete(); } catch (SQLException e) { processException("Could not read metadata field, SQLException. Message:" + e, context); <START> log.error(e.getMessage()); <END> throw new WebApplicationException(Response.Status.INTERNAL_SERVER_ERROR); } catch (ContextException e) { processException("Could not read metadata field, ContextException. Message:" + e.getMessage(), context); } finally { processFinally(context); } log.trace("Metadata field successfully read."); return metadataField; }</code><technical_language>Leave out this line, processException log it</technical_language>

Target:
public MetadataField getMetadataFieldQualified(@PathParam("schema_prefix") String schemaPrefix, @PathParam("element") String element, @PathParam("qualifier") @DefaultValue("") String qualifier, @QueryParam("expand") String expand, @QueryParam("userIP") String user_ip, @QueryParam("userAgent") String user_agent, @QueryParam("xforwarderfor") String xforwarderfor, @Context HttpHeaders headers, @Context HttpServletRequest request) throws WebApplicationException { log.info("Reading metadata field."); org.dspace.core.Context context = null; MetadataField metadataField = null; try { context = createContext(getUser(headers)); org.dspace.content.MetadataSchema schema = metadataSchemaService.find(context, schemaPrefix); if (schema == null) { log.error(String.format("Schema not found for prefix %s", schemaPrefix)); throw new WebApplicationException(Response.Status.NOT_FOUND); } org.dspace.content.MetadataField field = metadataFieldService.findByElement(context, schema, element, qualifier); if (field == null) { log.error(String.format("Field %s.%s.%s not found", schemaPrefix, element, qualifier)); throw new WebApplicationException(Response.Status.NOT_FOUND); } metadataField = new MetadataField(schema, field, expand, context); context.complete(); } catch (SQLException e) { processException("Could not read metadata field, SQLException. Message:" + e, context); } catch (ContextException e) { processException("Could not read metadata field, ContextException. Message:" + e.getMessage(), context); } finally { processFinally(context); } log.trace("Metadata field successfully read."); return metadataField; }