Instead of iterating fields, used GenericPk class object to get the PK fileds from parameters/fieldMap. Thanks Deepak for this nice improvement git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802684 13f79535-47bb-0310-9956-ffa450edef68