improved BeanLoader.deployFile method