public T getInstance(Class<T> type, Annotation... qualifiers) { PortletResponse response = PortletHelper.getResponse(); if (type.isInstance(response)) { return type.cast(response); } else { throw new ChellException( "Can not inject object of class '" + type.getName() + "' during " + PortletHelper.getPhase() + " phase."); } }
public PortletResponse getInstance(Class<PortletResponse> type, Annotation... qualifiers) { return PortletHelper.getResponse(); }