You should check if the bootstrapper implements well the Bootstrapper interface and throws an exception if it is not the case