Program: 82960
Project: 82960
Buggy source:
/** 
 * Gets the   {@link SerializationPolicy} for given module base URL and strongname if there is one. Override this method to provide a  {@link SerializationPolicy} using analternative approach.
 * @param request the HTTP request being serviced
 * @param moduleBaseURL as specified in the incoming payload
 * @param strongName a strong name that uniquely identifies a serializationpolicy file
 * @return a {@link SerializationPolicy} for the given module base URL andstrong name, or <code>null</code> if there is none
 */
protected SerializationPolicy doGetSerializationPolicy(HttpServletRequest request,String moduleBaseURL,String strongName){
  String contextPath=request.getContextPath();
  String modulePath=null;
  if (moduleBaseURL != null) {
    try {
      modulePath=new URL(moduleBaseURL).getPath();
    }
 catch (    MalformedURLException ex) {
      getServletContext().log("String_Node_Str" + moduleBaseURL,ex);
    }
  }
  SerializationPolicy serializationPolicy=null;
  if (modulePath == null || !modulePath.startsWith(contextPath)) {
    String message="String_Node_Str" + modulePath + "String_Node_Str"+ contextPath+ "String_Node_Str";
    getServletContext().log(message);
  }
 else {
    String contextRelativePath=modulePath.substring(contextPath.length());
    String serializationPolicyFilePath=SerializationPolicyLoader.getSerializationPolicyFileName(contextRelativePath + strongName);
    InputStream is=getServletContext().getResourceAsStream(serializationPolicyFilePath);
    try {
      if (is != null) {
        try {
          serializationPolicy=SerializationPolicyLoader.loadFromStream(is);
        }
 catch (        ParseException e) {
          getServletContext().log("String_Node_Str" + serializationPolicyFilePath + "String_Node_Str",e);
        }
catch (        ClassNotFoundException e) {
          getServletContext().log("String_Node_Str" + e.getMessage() + "String_Node_Str"+ serializationPolicyFilePath+ "String_Node_Str"+ "String_Node_Str",e);
        }
catch (        IOException e) {
          getServletContext().log("String_Node_Str" + serializationPolicyFilePath + "String_Node_Str",e);
        }
      }
 else {
        String message="String_Node_Str" + serializationPolicyFilePath + "String_Node_Str";
        getServletContext().log(message);
      }
    }
  finally {
      if (is != null) {
        try {
          is.close();
        }
 catch (        IOException e) {
        }
      }
    }
  }
  return serializationPolicy;
}

Fixed version (ground truth):
/** 
 * Gets the   {@link SerializationPolicy} for given module base URL and strongname if there is one. Override this method to provide a  {@link SerializationPolicy} using analternative approach.
 * @param request the HTTP request being serviced
 * @param moduleBaseURL as specified in the incoming payload
 * @param strongName a strong name that uniquely identifies a serializationpolicy file
 * @return a {@link SerializationPolicy} for the given module base URL andstrong name, or <code>null</code> if there is none
 */
protected SerializationPolicy doGetSerializationPolicy(HttpServletRequest request,String moduleBaseURL,String strongName){
  String contextPath=request.getContextPath();
  String modulePath=null;
  if (moduleBaseURL != null) {
    try {
      modulePath=new URL(moduleBaseURL).getPath();
    }
 catch (    MalformedURLException ex) {
      getServletContext().log("String_Node_Str" + moduleBaseURL,ex);
    }
  }
  SerializationPolicy serializationPolicy=null;
  if (modulePath == null || !modulePath.startsWith(contextPath)) {
    String message="String_Node_Str" + modulePath + "String_Node_Str"+ contextPath+ "String_Node_Str";
    getServletContext().log(message);
  }
 else {
    String contextRelativePath=modulePath.substring(contextPath.length());
    String serializationPolicyFilePath=SerializationPolicyLoader.getSerializationPolicyFileName(contextRelativePath + strongName);
    InputStream is=getServletContext().getResourceAsStream(serializationPolicyFilePath);
    try {
      if (is != null) {
        try {
          serializationPolicy=SerializationPolicyLoader.loadFromStream(is,null);
        }
 catch (        ParseException e) {
          getServletContext().log("String_Node_Str" + serializationPolicyFilePath + "String_Node_Str",e);
        }
catch (        IOException e) {
          getServletContext().log("String_Node_Str" + serializationPolicyFilePath + "String_Node_Str",e);
        }
      }
 else {
        String message="String_Node_Str" + serializationPolicyFilePath + "String_Node_Str";
        getServletContext().log(message);
      }
    }
  finally {
      if (is != null) {
        try {
          is.close();
        }
 catch (        IOException e) {
        }
      }
    }
  }
  return serializationPolicy;
}