Retrieves an extension by its name. If no extension by that name can
be found, this method returns <code>null</code>.

@param name The name of the requested extension.
@return The requested extension (may be <code>null</code>, if it
cannot be found).
424271
public XExtension getByName(String name) {
                for (XExtension ext : extensionList) {
                        if (ext.getName().equals(name)) {
                                return ext;
                        }
                }
                return null;
        }
403127
public Property getProperty(String... name) {
        if (name == null || name.length == 0) return null;

        for (Property p : properties) {
            if (Objects.equals(name[0], p.name)) {
                if (name.length == 1)
                    return p;
                else
                    return p.getProperty(Arrays.copyOfRange(name, 1, name.length));
            }
        }
        return null;
    }
1331690
@Override
    public String getParameter(String name) {
        String[] vals = getParameterMap().get(name);

        return (vals != null && vals.length > 0) ? vals[0] : null;
    }
1119531
public String getHeader( final String name ) {
        List<String> headerVals = getRequestInfo().getHeader(name);
        if( headerVals != null && !headerVals.isEmpty() ) {
            return headerVals.get(0);
        }
        return null;
    }
104588
public <T> T get(String name){
        Map<String,Object> m = getMap(name);
        if(m!=null)
            return (T)m.get(name);
        return null;
    }
36606
public
    Appender getAppender(String name) {
        if(name == null)
            return null;

        for (Appender appender : appenderList) {
            if(name.equals(appender.getName()))
                return appender;
        }
        return null;
    }
1165780
@SuppressWarnings("unchecked")
    public <U extends Uniform> U get(String name) {
        final Uniform uniform = uniforms.get(name);
        if (uniform == null) {
            return null;
        }
        return (U) uniform;
    }
294952
public Field getField(String name) {
    FieldInfo fieldInfo = getFieldInfo(name);
    return fieldInfo == null ? null : fieldInfo.getField();
  }
1045482
public ExtensionAuthor getExtensionAuthor(String name, String url)
    {
        return getExtensionAuthor(new DefaultExtensionAuthor(name, url));
    }
227428
public String getFieldValue(String name) {
        String field = (String)fields.get(name);
        if (field == null) {
            return null;
        }
        else {
        	return field;
        }
    }
1373402
public Object getValue(@NonNull String name) {
        if (name == null) { throw new IllegalArgumentException("name cannot be null."); }
        return map.get(name);
    }
367855
public Field getField( String name )
    {
        for (Field field : target.getFields())
        {
            if (compare( field.getName(), name )) return field;
        }
        return null;
    }
793755
public AnnotationDescr getAnnotation( String name ) {
        return annotations == null ? null : annotations.get( name );
    }
1315365
public String getParameter( String name )
    {
        if (_parameters == null || !_parameters.hasParameters())
            return null;

        List parameters = _parameters.getParameterValues(name);
        if(parameters != null && parameters.size() > 0)
            return (String)parameters.get(0);
        else return null;
    }
45111
public Optional<MethodParameter> getParameter(String name) {

		Assert.hasText(name, "Parameter name must not be null!");

		return getParameters().stream() //
				.filter(it -> name.equals(it.getParameterName())) //
				.findFirst();
	}
616119
public static String getExtensionNameNoAuthor(String extensionName) {
		String value = null;
		if (extensionName != null) {
			value = extensionName.substring(
					extensionName.indexOf(EXTENSION_NAME_DIVIDER) + 1,
					extensionName.length());
		}
		return value;
	}
645389
private static final String getExtension(String fileName) {
		return fileName.indexOf('.') == -1 ? null : fileName.substring(fileName.lastIndexOf('.') + 1);
	}