Reorder the publish order of the modules based on any discovered dependencies
@param modules Modules to be published to the Geronimo server
@param deltaKind Publish kind constant for each module
@return List of reordered modules and deltaKind (or input if no change)
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.