code: public void setProperties(ServiceReference<FilterFactory> reference) {
          { // set the lifecycle property
              Object property = reference.getProperty(FilterFactory.MAINTAIN_LIFECYCLE);
              if (property != null) {
                  maintainLifeCycle = Boolean.parseBoolean(property.toString());
              } else {
                  maintainLifeCycle = true;
              }
              serviceRanking = getInteger(reference.getProperty(Constants.SERVICE_RANKING), 0);
              priority = getInteger(reference.getProperty(FilterFactory.FILTER_PRIORITY), 0);
              serviceID = getInteger(reference.getProperty(Constants.SERVICE_ID), 0);
          }
      }
docs: set the properties for this reference from the given {@link org.osgi.framework.ServiceReference}
  
  @param reference a {@link org.osgi.framework.ServiceReference} object.