Have you considered include files? Lets regards the usage of a JSP fragment import.jsf:
<%@page import="java.util.Map"%>
<%@page import="java.util.List"%>
And some JSP file who uses that fragment some.jsp, and contains scriptlets:
<%@ include page="import.jsf" %>
<% // some code
%>
I assume that the organize feature should always only affect the jsp file, never fragments, because this could and will have mage side effects.
NOP