@SuppressWarnings("unchecked")
    protected <T extends Service<S>> T getService( Class<T> type ) {
        return type.cast(serviceManager.getService(type));
    }
Retrieves the first sibling service of the specified
 type.
jme3-networking/src/main/java/com/jme3/network/service/AbstractService.java