implemented generic state recognition based on sate-convert-method on model layer