text: import com.ibm.edms.od.*; 
  
  public class CustomTransform { 
   public static HashMap transformData(HashMap odMap) throws Exception { 
   System.out.println("Inside transformData method"); 
   // List this transform name from the XML file 
   System.out.println(" Transform name: " + 
  (String)odMap.get(ODTransform.TXFRM_REQ_NAME)); 
  
   // List the property keys and values ODWEK read from the transform XML 
   // file and provided to this Custom Class 
   System.out.println(" Transform properties:"); 
   Properties gtProps = (Properties)odMap.get(ODTransform.TXFRM_REQ_PROPS); 
   Enumeration<?> enumeration = gtProps.keys(); 
   List<String> list = new ArrayList<String>(); 
   while (enumeration.hasMoreElements()) { 
   list.add((String)enumeration.nextElement()); 
   } 
   Collections.sort(list); 
   for (String key : list) 
   System.out.println(String.format("%25s = %-25s", key, 
  gtProps.getProperty(key))); 
  
   // Retrieve the native document from ODWEK 
   byte[] inDoc = (byte [])odMap.get(ODTransform.TXFRM_REQ_DATA); 
   System.out.println(" Native document size: " + (inDoc == null ? null: 
  inDoc.length)); 