package edu.northwestern.bioinformatics.studycalendar.restlets;

import edu.northwestern.bioinformatics.studycalendar.dao.SourceDao;
import edu.northwestern.bioinformatics.studycalendar.domain.Source;
import edu.northwestern.bioinformatics.studycalendar.xml.readers.ActivityXMLReader;
import org.restlet.Context;
import org.restlet.data.MediaType;
import org.restlet.data.Reference;
import org.restlet.data.Request;
import org.restlet.data.Response;
import org.restlet.resource.Representation;
import org.restlet.resource.Resource;
import org.restlet.resource.ResourceException;
import org.restlet.resource.Variant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Required;

/**
 * Resource representing a single {@link Source}.
 *
 * @author Rhett Sutphin
 */
public class ActivitySourceResource extends AbstractStorableDomainObjectResource<Source> {
    private SourceDao sourceDao;

    protected Source loadRequestedObject(Request request) {
        String sourceName = UriTemplateParameters.SOURCE_NAME.extractFrom(request);
        return sourceDao.getByName(sourceName);
    }

    ////// CONFIGURATION

    @Required
    public void setSourceDao(SourceDao sourceDao) {
        this.sourceDao = sourceDao;
    }
}

@@ -205,471 +205,32 @@
 ort 
-edu.northwestern.bioinformatics.studycalendar.xml.readers.ActivityXMLReader;%0Aimport org.restlet.Context;%0Aimport org.restlet.data.MediaType;%0Aimport org.restlet.data.Reference;%0Aimport org.restlet.data.Request;%0Aimport org.restlet.data.Response;%0Aimport org.restlet.resource.Representation;%0Aimport org.restlet.resource.Resource;%0Aimport org.restlet.resource.ResourceException;%0Aimport org.restlet.resource.Variant;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory
+org.restlet.data.Request
 ;%0Aim
@@ -501,16 +501,30 @@
 ceDao;%0A%0A
+    @Override%0A
     prot

Remove unused imports