public boolean testExpression(String expression) {
        if (expression.equals(".")) return true;
        return stackString.endsWith(expression);
    }
Tests the specified expression against the current position in the XML
document being parsed.

@param expression
           The psuedo-xpath expression to test.
@return True if the expression matches the current document position,
        otherwise false.
aws-java-sdk-core/src/main/java/com/amazonaws/transform/StaxUnmarshallerContext.java