public String getPath() {
        String parentPath = parentContext == null ? "" : parentContext.getPath() + ".";
        switch (location) {
            case Branch:
            case Retrier:
            case Catcher:
            case Choice:
            case State:
                return String.format("%s%s[%s]", parentPath, location.toString(), identifier);
            case StateMachine:
                return "StateMachine";
            default:
                return "Unknown";
        }
    }
@return Path to validation error given current context.
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/internal/validation/ValidationContext.java