Modified Sepaloid::registerPetaloidForPath method.