@Transactional
	protected HashServiceConfiguration hashServiceConfiguration() {
		Exception exception = null;
		for (int i = 0; i < 3; i++) {
			final HashServiceConfiguration config = hashServiceConfigurationDAO.findByName(getHashServiceConfigurationName());
			if (config != null) {
				return config;
			}

			try {
				return hashServiceConfigurationDAO.create(newHashServiceConfiguration());
			} catch (Exception e) {
				exception = e;
				try {
					Thread.sleep((long) (Math.random() * 1000));
				} catch (InterruptedException e2) {
					// ignore
				}
			}
		}

		throw new RuntimeException("hashServiceConfiguration() failed", exception);
	}
@Transactional
	protected HashServiceConfiguration hashServiceConfiguration() {
		Exception exception = null;
		for (int i = 0; i < 3; i++) {
			final HashServiceConfiguration config = hashServiceConfigurationDAO.findByName(getHashServiceConfigurationName());
			if (config != null) {
				return config;
			}

			try {
				return hashServiceConfigurationDAO.create(newHashServiceConfiguration());
			} catch (Exception e) {
				exception = e;
				try {
					Thread.sleep((long) (Math.random() * 1000));
				} catch (InterruptedException e2) {
					
				}
			}
		}

		throw new RuntimeException("hashServiceConfiguration() failed", exception);
	}
@ Transactional protected HashServiceConfiguration hashServiceConfiguration ( ) { Exception exception = null ; for ( int i = 0 ; i < 3 ; i ++ ) { final HashServiceConfiguration config = hashServiceConfigurationDAO . findByName ( getHashServiceConfigurationName ( ) ) ; if ( config != null ) { return config ; } try { return hashServiceConfigurationDAO . create ( newHashServiceConfiguration ( ) ) ; } catch ( Exception e ) { exception = e ; try { Thread . sleep ( ( long ) ( Math . random ( ) * 1000 ) ) ; } catch ( InterruptedException e2 ) { // ignore } } } throw new RuntimeException ( "hashServiceConfiguration() failed" , exception ) ; }
Will try to lookup the HashServiceConfiguration using the name specified by {@link #getHashServiceConfigurationName()}

@return
Will try to lookup the HashServiceConfiguration using the name specified by { @link #getHashServiceConfigurationName () }