snaker-core/src/main/java/org/snaker/engine/impl/SimpleContext.java
public <T> T find(Class<T> clazz) {
		for (Entry<String, Object> entry : contextMap.entrySet()) {
			if (clazz.isInstance(entry.getValue())) {
				return clazz.cast(entry.getValue());
			}
		}
		return null;
	}
public <T> T find(Class<T> clazz) {
		for (Entry<String, Object> entry : contextMap.entrySet()) {
			if (clazz.isInstance(entry.getValue())) {
				return clazz.cast(entry.getValue());
			}
		}
		return null;
	}
public < T > T find ( Class < T > clazz ) { for ( Entry < String , Object > entry : contextMap . entrySet ( ) ) { if ( clazz . isInstance ( entry . getValue ( ) ) ) { return clazz . cast ( entry . getValue ( ) ) ; } } return null ; }
对外部提供的查找对象方法，根据class类型查找
@param clazz
@return
对外部提供的查找对象方法，根据class类型查找