Loader<String, CachedJavascript, ResourceResolver> loader = new Loader<String, CachedJavascript, ResourceResolver>()
{
@Override
public CachedJavascript retrieve(ResourceResolver context, String key) throws Exception
{
Resource resource = context.resolve(key);
if (resource == null)
{
return null;
}
StringBuilder sB = new StringBuilder();
try
{
BufferedReader reader = new BufferedReader(resource.read());
String line = reader.readLine();
try
{
while (line != null)
{