private void submit() {
   url.setError(null);
   if (TextUtils.isEmpty(title.getText().toString())) {
     title.setError(getString(R.string.validation_message_no_deployment_title));
     return;
   }
   if (!(new UrlValidator().isValid(url.getText().toString()))) {
     url.setError(getString(R.string.validation_message_invalid_url));
     return;
   }
   mWebServiceModel.setTitle(title.getText().toString());
   mWebServiceModel.setUrl(url.getText().toString());
   mUpdateWebServicePresenter.updateWebService(mWebServiceModel);
 }
 private void initialize() {
   getComponent(WebServiceComponent.class).inject(this);
   mUpdateWebServicePresenter.setView(this);
 }
 @Override
 public void onPause() {
   super.onPause();
   mUpdateWebServicePresenter.pause();
 }
 @Override
 public void onDestroy() {
   super.onDestroy();
   mUpdateWebServicePresenter.destroy();
 }
 @Override
 public void onResume() {
   super.onResume();
   mUpdateWebServicePresenter.resume();
 }