You can look up the current EditLayer from the EditManager if you want to check out what is going on. Chances are the provided feature is adaptable and can adapt to the current layer anyways.
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.