class RobotsPolicy {
    public static Map<String, RobotsPolicy> STANDARD_POLICIES = new HashMap<String,RobotsPolicy>();
    static {
        STANDARD_POLICIES.put("obey", ObeyRobotsPolicy.INSTANCE);
        // the obey policy has also historically been called 'classic'
        STANDARD_POLICIES.put("classic", ObeyRobotsPolicy.INSTANCE);
        STANDARD_POLICIES.put("ignore", IgnoreRobotsPolicy.INSTANCE);
        STANDARD_POLICIES.put("robotsTxtOnly", RobotsTxtOnlyPolicy.INSTANCE);
    }

    public abstract boolean allows(String userAgent, CrawlURI curi, Robotstxt robotstxt);
    
    public abstract boolean obeyMetaRobotsNofollow();
    
    public String getPathQuery(CrawlURI curi) {<FILL_FUNCTION_BODY>}
}

        try {
            return curi.getUURI().getPathQuery();
        } catch (URIException e) {
            // unlikely
            return "";
        }
    
<no_super_class>