GRIFFON-623 use the right aplication class when running in webstart mode