protected void checkProperty(String type, String property) { if (!property.matches(alphaNumeric)) { throw new ApiUsageException("Property argument to " + "getCollectionCount may ONLY be alpha-numeric (" + alphaNumeric + ")"); } if (!iQuery.checkProperty(type, property)) { throw new ApiUsageException(type + "." + property + " is an unknown property on type " + type); } }