added helper method indexNameFromModel

Signed-off-by: Alexander Knapstein <alexander.knapstein@inspirationlabs.com>