/** * Verify that the single port feature is enabled. Initializes features if the provided one is null, allowing for * lazily initialized Features instance. * @param features existing instance or null * @return the features instance that was checked, always non null * @throws StartException thrown if the single port feature was disabled */ private Features checkSinglePortEnabled(Features features) throws StartException { if (features == null) { features = new Features(getClass().getClassLoader()); } if (!features.isAvailable(SINGLE_PORT_FEATURE)) { throw LogFactory.getLog(MethodHandles.lookup().lookupClass()).featureDisabled(SINGLE_PORT_FEATURE); } return features; }
public class Base64 { private static final Log log = LogFactory.getLog(Base64.class);