}
private void serveStaticResources(ResourceRequest request,
ResourceResponse response) throws IOException, PortletException {
final String resourceID = request.getResourceID();
final PortletContext pc = getPortletContext();
InputStream is = pc.getResourceAsStream(resourceID);
if (is != null) {
final String mimetype = pc.getMimeType(resourceID);
if (mimetype != null) {
response.setContentType(mimetype);
}
final OutputStream os = response.getPortletOutputStream();
final byte buffer[] = new byte[DEFAULT_BUFFER_SIZE];