code: public static <I, T extends I> void registerInterface(final Class<I> interfaceClass, final T instance, final RSBLocalServer server) throws CouldNotPerformException {
          for (final Method method : interfaceClass.getMethods()) {
              if (method.getAnnotation(RPCMethod.class) != null) {
                  boolean legacy = false;
                  try {
                      legacy = JPService.getProperty(JPRSBLegacyMode.class).getValue();
                  } catch (JPNotAvailableException e) {
                      // if not available just register legacy methods
                  }
                  // if legacy register always, else only register if not marked as legacy
                  if (legacy || !method.getAnnotation(RPCMethod.class).legacy()) {
                      registerMethod(method, instance, server);
                  }
              }
          }
      }
docs: public static SyncObject syncObject = new SyncObject("MapSync");