public String admin_getAppPropertiesAsString(Collection<ApplicationProperty> properties)
     throws FacebookException, IOException {
   if (this._isDesktop) {
     // this method cannot be called from a desktop app
     throw new FacebookException(
         ErrorCode.GEN_PERMISSIONS_ERROR,
         "Desktop applications cannot use 'admin.getAppProperties'");
   }
   JSONArray props = new JSONArray();
   for (ApplicationProperty property : properties) {
     props.put(property.getName());
   }
   Document d =
       callMethod(
           FacebookMethod.ADMIN_GET_APP_PROPERTIES,
           new Pair<String, CharSequence>("properties", props.toString()));
   return extractString(d);
 }
 static {
   for (ApplicationProperty prop : ApplicationProperty.values()) {
     nameToProperty.put(prop.propertyName(), prop);
   }
 }