/** * Filters attributes to include only the supported ones. * * @param field identifier of field * @param attributes field properties * @return filtered attributes */ private int filterAttributes(int field, int attributes) { if (attributes == 0) { return 0; } else { return attributes & pimHandler.getSupportedAttributesMask(pimListHandle, field); } }