framework/server/core/src/main/java/org/ldp4j/server/data/spi/RuntimeDelegate.java
private static RuntimeDelegate findDelegate() {
		try {
			RuntimeDelegate result=createRuntimeDelegateFromSPI();
			if(result==null) {
				result=createRuntimeDelegateFromConfigurationFile();
			}

			if(result==null) {
				String delegateClassName = System.getProperty(LDP4J_SERVER_DATA_SPI_PROPERTY);
				if(delegateClassName!=null) {
					result=createRuntimeDelegateForClassName(delegateClassName);
				}
			}

			if(result==null) {
				result=new DefaultRuntimeInstance();
			}

			return result;
		} catch (Exception ex) {
			throw new IllegalStateException("Could not find runtime delegate",ex);
		}
	}
private static RuntimeDelegate findDelegate() {
		try {
			RuntimeDelegate result=createRuntimeDelegateFromSPI();
			if(result==null) {
				result=createRuntimeDelegateFromConfigurationFile();
			}

			if(result==null) {
				String delegateClassName = System.getProperty(LDP4J_SERVER_DATA_SPI_PROPERTY);
				if(delegateClassName!=null) {
					result=createRuntimeDelegateForClassName(delegateClassName);
				}
			}

			if(result==null) {
				result=new DefaultRuntimeInstance();
			}

			return result;
		} catch (Exception ex) {
			throw new IllegalStateException("Could not find runtime delegate",ex);
		}
	}
private static RuntimeDelegate findDelegate ( ) { try { RuntimeDelegate result = createRuntimeDelegateFromSPI ( ) ; if ( result == null ) { result = createRuntimeDelegateFromConfigurationFile ( ) ; } if ( result == null ) { String delegateClassName = System . getProperty ( LDP4J_SERVER_DATA_SPI_PROPERTY ) ; if ( delegateClassName != null ) { result = createRuntimeDelegateForClassName ( delegateClassName ) ; } } if ( result == null ) { result = new DefaultRuntimeInstance ( ) ; } return result ; } catch ( Exception ex ) { throw new IllegalStateException ( "Could not find runtime delegate" , ex ) ; } }
Obtain a {@code RuntimeInstance} instance using the method described in
{@link #getInstance}.

@return an instance of {@code RuntimeInstance}.
Obtain a { @code RuntimeInstance } instance using the method described in { @link #getInstance } .