if (!sm_serverType.equals(CandlepinType.hosted))   <== this would be a better check