private Object[] BuildArgs <T>(T dataObject, String principal, PermissionTypes permissionType) { String tableName = PersistenceService.GetTypeName(dataObject.GetType()); String objectId = PersistenceService.GetEntityId <T>(dataObject); if (principal != null) { return new Object[] { tableName, principal, objectId, GetOperation(), permissionType } } ; else { return new Object[] { tableName, objectId, GetOperation(), permissionType } }; }