private static boolean isSegmentExpression(final String value){
  return (value.endsWith(":") && isSegment(value.substring(0,value.length() - 1)));
}

private static boolean isSegmentExpression ( final String value ) { return ( value . endsWith ( ":" ) && isSegment ( value . substring ( 0 , value . length ( ) - 1 ) ) ) ; }
this is needed to identify if a particular expression is a segment register .
