this.log = Logger.getLogger(PortletFilterImpl.class);
}
public <T> T instance(Class<T> type)
{
LifeCyclePhase phase = typeToPhase.get(type);
// It means we can cast unless the developers did not implement the correct interface
if (info.getPhases().contains(phase))
{
if (type.isInstance(lifeCycle.getInstance()))