public static String getServerId(String clientId) {

        String serverId = clientId;
        if (clientId.contains(CLIENT_ID_SEPERATOR)) {
            serverId = clientId.substring(0, clientId.lastIndexOf(CLIENT_ID_SEPERATOR));
        }
        return serverId;
    }
public static String getServerId ( String clientId ) { String serverId = clientId ; if ( clientId . contains ( CLIENT_ID_SEPERATOR ) ) { serverId = clientId . substring ( 0 , clientId . lastIndexOf ( CLIENT_ID_SEPERATOR ) ) ; } return serverId ; }
Returns the server id for a given client element id.<p>

@param clientId the client id including an optional element settings hash

@return the server id