Some refactoring to allow code reuse from CordovaSim Eclipse plugins