class BaseExtensionUtils {

    @Nullable
    protected static String getStringValue( @Nonnull String url, @Nonnull IBaseHasExtensions resource )
    {
        final IBaseDatatype value = getValue( url, resource );

        if ( value instanceof IPrimitiveType )
        {
            return ( (IPrimitiveType) value ).getValueAsString();
        }

        return null;
    }

    private  BaseExtensionUtils();

}