check if rabbitmq server class is already defined