Do not restrict the implementation only to @ManagedService. Instead add a special @StompEndpoint annotation that can be read from any class