class Elastic {

		/**
		 * Elastic service uri. Overrides username and password when UserInfo is set.
		 */
		private String uri;

		/**
		 * Elastic service username.
		 */
		private String username;

		/**
		 * Elastic service password.
		 */
		private String password;

		/**
		 * Name of the index.
		 */
		private String indexName = "initializr";

		/**
		 * Number of attempts before giving up.
		 */
		private int maxAttempts = 3;

		public String getUsername() {
			return this.username;
		}

		public void setUsername(String username) {
			this.username = username;
		}

		public String getPassword() {
			return this.password;
		}

		public void setPassword(String password) {
			this.password = password;
		}

		public String getIndexName() {
			return this.indexName;
		}

		public void setIndexName(String indexName) {
			this.indexName = indexName;
		}

		public int getMaxAttempts() {
			return this.maxAttempts;
		}

		public void setMaxAttempts(int maxAttempts) {
			this.maxAttempts = maxAttempts;
		}

		public String getUri() {
			return this.uri;
		}

		public void setUri(String uri) {
			this.uri = cleanUri(uri);
		}

		private static String cleanUri(String contextPath) {<FILL_FUNCTION_BODY>}

	}

			if (StringUtils.hasText(contextPath) && contextPath.endsWith("/")) {
				return contextPath.substring(0, contextPath.length() - 1);
			}
			return contextPath;
		
<no_super_class>