public static void updateAttributesValues(Persistable object, String[] attributeNames, Object[] attributeValues) throws WTException
{
if(attributeNames.length != attributeValues.length)
{
throw new WTException("The length of attribute names array is not the same as the length of attribute values array");
}
LWCNormalizedObject lwcNormalizedObject = new LWCNormalizedObject(object, null, null, new UpdateOperationIdentifier());
lwcNormalizedObject.load(attributeNames);
for(int i=0; i<attributeNames.length; i++)
{
lwcNormalizedObject.set(attributeNames[i], attributeValues[i]);
}
lwcNormalizedObject.apply();
}