private static boolean isWord( String string )
    {

        if ( string == null || string.length() == 0 )
        {

            return false;
        }

        for ( int i = 0; i < string.length(); ++i )
        {

            char c = string.charAt( i );

            if ( !Character.isJavaIdentifierPart( c ) && c != '.' )
            {
                return false;
            }

        }

        return true;
    }