Add license to AveragesResource.java