@Override
public Set<Object> getSingletons() {
SecurityPolicy securityPolicy;
try {
securityPolicy = new StaticPolicy(FlatPackStreams.read(
new InputStreamReader(getClass().getResourceAsStream("DemoServer.policy"),
Charset.forName("UTF8"))));
} catch (IOException e) {
throw new RuntimeException("Could not load security policy file", e);
}