public static String virtualNodesToSegments(String virtualNodesValue) {
        int segments = SEGMENTS_DEFAULT;
        try {
            segments =  virtualNodesToSegments(Integer.parseInt(virtualNodesValue));
        }
        catch(NumberFormatException nfe) {
            // in case of expression
        }
        return Integer.toString(segments);
    }
public static String virtualNodesToSegments(String virtualNodesValue) {
        int segments = SEGMENTS_DEFAULT;
        try {
            segments =  virtualNodesToSegments(Integer.parseInt(virtualNodesValue));
        }
        catch(NumberFormatException nfe) {
            
        }
        return Integer.toString(segments);
    }
public static String virtualNodesToSegments ( String virtualNodesValue ) { int segments = SEGMENTS_DEFAULT ; try { segments = virtualNodesToSegments ( Integer . parseInt ( virtualNodesValue ) ) ; } catch ( NumberFormatException nfe ) { // in case of expression } return Integer . toString ( segments ) ; }
/*
Helper methods
/ * Helper methods